import java.io.Serializable;

@SuppressWarnings("serial")
public class ComplexBoardCell extends BoardCell implements Serializable{
	int x;
	int y;
	
	public ComplexBoardCell(BoardCell c, int x, int y)
	{
		super(c.getContent());
		if(c.isStart())
			this.enableStart();
		else
			this.disableStart();
		if(c.isEnd()) 
			this.enableEnd();
		else
			this.disableEnd();
		if(c.isInner())
			this.enableInner();
		else
			this.disableInner();
		this.setDirection(c.getDirection());
		this.x = x;
		this.y = y;
	}
	
	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}
}
